package com.emm.yixun.openapi.hander;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.emm.yixun.common.app.DownloadNewVersionReqDto;
import com.emm.yixun.common.app.DownloadNewVersionResDto;
import com.emm.yixun.openapi.dto.base.BaseRequestDTO;
import com.emm.yixun.openapi.dto.base.BaseResponseDTO;
import com.emm.yixun.openapi.vo.DownloadNewVersionReqVo;
import com.emm.yixun.system.service.app.UserServiceAppFacade;

/**
 * （2）下载新版本接口(downloadNewVersion)
 * @author Administrator
 *
 */
@Service("downloadNewVersionHander")
public class DownloadNewVersionHander extends com.emm.yixun.openapi.hander.base.CommonAbstractHander{
	
	@Autowired
	private UserServiceAppFacade userServiceAppFacade;
	
	@SuppressWarnings("rawtypes")
	@Override
	public BaseResponseDTO doBusiness(BaseRequestDTO reqDto) {
		DownloadNewVersionReqVo req = (DownloadNewVersionReqVo)reqDto;
		DownloadNewVersionReqDto reqDto1 = req.getParams();
		BaseResponseDTO<DownloadNewVersionResDto> res = new BaseResponseDTO<DownloadNewVersionResDto>();
		res.setResData(userServiceAppFacade.downloadNewVersion(reqDto1));
		return res;
	}
	
}
